package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

// 客户入住登记记录实体类
@TableName("check_in_record")
public class CheckInRecord {
    @TableId(value = "check_in_record_id", type = IdType.AUTO)
    // 入住记录ID (主键)
    private Integer checkInRecordId;

    // 客户ID (外键)
    private Integer clientId;

    // 入住时间
    private Date checkInTime;

    // 合同到期时间
    private Date contractEndTime;

    // 经办人ID (外键)
    private Integer adId;

    // 构造函数
    public CheckInRecord() {
    }

    // Getters 和 Setters
    public Integer getCheckInRecordId() {
        return checkInRecordId;
    }

    public void setCheckInRecordId(Integer checkInRecordId) {
        this.checkInRecordId = checkInRecordId;
    }

    public Integer getClientId() {
        return clientId;
    }

    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }

    public Date getCheckInTime() {
        return checkInTime;
    }

    public void setCheckInTime(Date checkInTime) {
        this.checkInTime = checkInTime;
    }

    public Date getContractEndTime() {
        return contractEndTime;
    }

    public void setContractEndTime(Date contractEndTime) {
        this.contractEndTime = contractEndTime;
    }

    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    @Override
    public String toString() {
        return "CheckInRecord{" +
                "checkInRecordId=" + checkInRecordId +
                ", clientId=" + clientId +
                ", checkInTime=" + checkInTime +
                ", contractEndTime=" + contractEndTime +
                ", adId=" + adId +
                '}';
    }
}

